# -*- coding: utf-8 -*-

from time import sleep
from bot.model.dwModel import dwModel as db

class pipeline(object):
    def process_item(self, item, spider):

        if item['flag'] == 'dw_list':
            db().getQuestionById(1)
            sleep(5)
            print(item)
        else:
            print(2222)